package com.hoshiicloud.purchase.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "PodetailDTO对象", description = "")
public class PodetailDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 采购单ID
     */
    @ApiModelProperty(value = "采购单ID")
    private Long poid;
    /**
     * 主订单明细ID
     */
    @ApiModelProperty(value = "主订单明细ID")
    private Long orderDetailid;
    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String spuName;
    /**
     * 规格
     */
    @ApiModelProperty(value = "规格")
    private String skuName;
    /**
     * sp uno
     */
    @ApiModelProperty(value = "sp uno")
    private String spuNo;
    /**
     * spu id
     */
    @ApiModelProperty(value = "spu id")
    private Long spuId;
    /**
     * SKU NO
     */
    @ApiModelProperty(value = "SKU NO")
    private String skuNo;
    /**
     * SKU ID
     */
    @ApiModelProperty(value = "SKU ID")
    private BigDecimal skuId;
    /**
     * 税率
     */
    @ApiModelProperty(value = "税率")
    private BigDecimal rate2;
    /**
     * 税额
     */
    @ApiModelProperty(value = "税额")
    private BigDecimal rateamount;
    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;
    /**
     * 商品单位
     */
    @ApiModelProperty(value = "商品单位")
    private String unit;
    /**
     * 规格
     */
    @ApiModelProperty(value = "规格")
    private String sku;
    /**
     * 单价
     */
    @ApiModelProperty(value = "单价")
    private BigDecimal unitprice;
    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Long quantity;
    /**
     * 状态 0-初始 1-已出库 2-已作废
     */
    @ApiModelProperty(value = "状态 0-初始 1-已出库 2-已作废")
    private Integer status;
    /**
     * 运费
     */
    @ApiModelProperty(value = "运费")
    private BigDecimal shippongcost;
    /**
     * 其他费用
     */
    @ApiModelProperty(value = "其他费用")
    private BigDecimal othercost;
    /**
     * 税率
     */
    @ApiModelProperty(value = "税率")
    private BigDecimal rate;
    /**
     * 税额
     */
    @ApiModelProperty(value = "税额")
    private BigDecimal ratefee;
    /**
     * 合计金额
     */
    @ApiModelProperty(value = "合计金额")
    private BigDecimal totalamount;
    /**
     * 供应商id-数据组装用
     */
    @ApiModelProperty(value = "供应商id")
    private Long vendorId;
}
